package com.ruoyi.job;

import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 项目启动时和运行期间定时触发任务扫描
 */
//@Component
//@RequiredArgsConstructor
//public class TaskJobLoader {
//
//    private static final Logger log = LoggerFactory.getLogger(TaskJobLoader.class);
//
//    /**
//     * 每分钟刷新任务状态，启动后延迟10秒再执行第一次
//     */
//    @Scheduled(initialDelay = 10000, fixedDelay = 60000)
//    public void refresh() {
//        log.info("执行定时任务");
//    }
//}
